import com.fasterxml.jackson.databind.ObjectMapper;

import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.DataInput;
import java.io.IOException;
import java.io.InputStream;

/**
 * Creat with IntelliJ IDEA
 * Description
 * User: mamba24
 * Date: 2022-11-10
 * Time: 10:41
 * To BE A Better Person-2020-3-2
 */
class Stu{
    public int userId;
    public int classId;
}
@WebServlet("/getParameter")
public class showRequest extends HttpServlet
{
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        //提取URL中的参数
//        String userid=req.getParameter("userid");
//        String classid=req.getParameter("classId");
//        resp.getWriter().write("uerId"+userid+" "+"classID"+classid);

    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {


    }
}
